<!--#include("./_header.html")-->
<form action="./" method="get" onsubmit="return doChangeCategory(this);" id="fo_list">
	<div class="table">
		<table width="100%" border="1" cellspacing="0">
			<caption>Total: {number_format($total_count)}, Page: {number_format($page)}/{number_format($total_page)}</caption>
			<thead>
				<tr>
					<th scope="col">{$lang->no}</th>
					<th scope="col"><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></th>
					<th scope="col">
<input type="hidden" name="module" value="{$module}" />
						<input type="hidden" name="act" value="{$act}" />
						<select name="module_category_srl">
							<option value="">{$lang->module_category}</option>
							<option value="0" <!--@if($module_category_srl==="0")-->selected="selected"<!--@end-->>{$lang->not_exists}</option>
							<!--@foreach($module_category as $key => $val)-->
							<option value="{$key}" <!--@if($module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
							<!--@end-->
							<option value="">---------</option>
							<option value="-1">{$lang->cmd_management}</option>
						</select>
						<input type="submit" name="go_button" id="go_button" value="GO" />
					</th>
					<th scope="col">{$lang->mid}</th>
					<th scope="col">{$lang->browser_title}</th>
					<th scope="col">{$lang->regdate}</th>
					<th scope="col">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				<!--@foreach($resource_list as $no => $val)-->
				<tr>
					<td>{$no}</td>
					<td><input type="checkbox" name="cart" value="{$val->module_srl}" /></td>
					<td>
						<!--@if(!$val->module_category_srl)-->
						<!--@if($val->site_srl)-->
						{$lang->virtual_site}
						<!--@else-->
						{$lang->not_exists}
						<!--@end-->
						<!--@else-->
						{$module_category[$val->module_category_srl]->title}
						<!--@end-->
					</td>
					<td>{htmlspecialchars($val->mid)}</td>
					<td><a href="{getSiteUrl($val->domain,'','mid',$val->mid)}" onclick="window.open(this.href); return false;">{$val->browser_title}</a></td>
					<td>{zdate($val->regdate,"Y-m-d")}</td>
					<td>
						<a href="{getUrl('act','dispResourceAdminInsert','module_srl',$val->module_srl)}">{$lang->cmd_setup}</a>
						<a href="{getUrl('','module','module','act','dispModuleAdminCopyModule','module_srl',$val->module_srl)}" onclick="popopen(this.href);return false;">{$lang->cmd_copy}</a>
						<a href="{getUrl('act','dispResourceAdminDelete','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a>
					</td>
				</tr>
				<!--@end-->
			</tbody>
		</table>
	</div>
</form>

<div class="btnArea">
    <div class="etc">
        <span class="btn"><a href="{getUrl('','module','module','act','dispModuleAdminModuleSetup')}" onclick="doCartSetup(this.href); return false;">{$lang->cmd_setup}</a></span>
        <span class="btn"><a href="{getUrl('','module','module','act','dispModuleAdminModuleAdditionSetup')}" onclick="doCartSetup(this.href); return false;">{$lang->cmd_addition_setup}</a></span>
        <span class="btn"><a href="{getUrl('','module','module','act','dispModuleAdminModuleGrantSetup')}" onclick="doCartSetup(this.href); return false;">{$lang->cmd_manage_grant}</a></span>
    </div>
    <span class="btn"><a href="{getUrl('act','dispResourceAdminInsert','module_srl','')}">{$lang->cmd_make}</a></span>
</div>

<!-- 페이지 네비게이션 -->
<div class="pagination">
    <a href="{getUrl('page','','module_srl','')}" class="direction">&lsaquo; {$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="direction">{$lang->last_page} &rsaquo;</a>
</div>


